import $axios from './index'
export function getPost() {
    const url = '/post/list'
    return $axios.get(url)
  }
  export function createPost(data) {
    const url = '/create'
    return $axios.post(url, data)
  }
  export function getPosts() {
      const url = '/article'
    return $axios.get(url)
  }